package hello

import (
	pb "kdemo/api"

	"github.com/gogf/gf/net/ghttp"
)

// Hello is a demonstration route handler for output "Hello World!".
func Hello(r *ghttp.Request) {
	in := &pb.HelloReq{Name: r.RequestURI}
	out, _ := pb.DemoCli.SayHelloURL(r.Context(), in)

	r.Response.WriteJson(out)
}
